using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;

namespace TimeWar
{
    namespace Octree
    {

        public class OctreeLeaf<T>
        {

            private Vector3 m_vector;
            private T objectValue;

            public OctreeLeaf(Vector3 vector, T obj)
            {
                m_vector = vector;
                objectValue = obj;
            }

            public T LeafObject
            {
                get
                {
                    return objectValue;
                }
            }

            public Vector3 Vector
            {
                get
                {
                    return m_vector;
                }
            }

            public float X
            {
                get
                {
                    return m_vector.X;
                }
                set
                {
                    m_vector.X = value; ;
                }
            }
            public float Y
            {
                get
                {
                    return m_vector.Y;
                }
                set
                {
                    m_vector.Y = value; ;
                }
            }
            public float Z
            {
                get
                {
                    return m_vector.Z;
                }
                set
                {
                    m_vector.Z = value; ;
                }
            }


        }
    }

}